﻿using System;
using System.IO;
using System.Reflection;

namespace Xman.Dashboard.Logger
{
    public class LogOptions
    {
        public string RoutePrefix { get; set; } = "log";

        public string SplitMark { get; set; } = "==||==";

        public string EndMark { get; set; } = "【end】";
        public string LogFilePath { get; set; } = AppDomain.CurrentDomain.BaseDirectory + @"\logs";

        public Func<Stream> IndexStream { get; set; } = () => typeof(LogOptions).GetTypeInfo().Assembly.GetManifestResourceStream("Xman.Dashboard.Logger.index.html");

    }
}
